<template>
  <el-date-picker
    v-model="model"
    type="date"
    placeholder="选择日期"
  >
  </el-date-picker>
</template>

<script>
import formMixin from "@/components/formMixin";
export default {
  name: "AegleDatePicker",
  mixins: [formMixin],
  render() {
    if (this.schema) {
      const checkboxs = this.options.map((item) => {
        return (
          <el-checkbox label={item.value} key={item.value}>
            {item.label}
          </el-checkbox>
        );
      });
      return (
        <el-checkbox-group
          v-model={this.model}
          style={{ ...this.style }}
          props={{ ...this.schema.props }}
        >
          {checkboxs}
        </el-checkbox-group>
      );
    }
  },
};
</script>

<style>
</style>